<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymelesf.org.com">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:each="item :${list}">
    <li th:text="${item.id}"></li>
    <li th:text="${item.name}"></li>
</div>
</body>
</html>